<!DOCTYPE html>
<html xmlns:th="http://wwww.thymeleaf.org">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>新增器材信息</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="format-detection" content="telephone=no">

  <link rel="stylesheet" th:href="@{/layui/css/layui.css}"  media="all" >
  <script th:src="@{/layui/layui.js}" charset="utf-8"></script>
</head>
<body>
<form class="layui-form layui-form-pane" action="/equ/priceAdd" method="post">
  <div class="layui-form-item">
    <label class="layui-form-label">器材类型</label>
    <div class="layui-input-inline">
      <input type="text" name="equtype" lay-verify="required" autocomplete="off" class="layui-input">
    </div>
  </div>


  <div class="layui-form-item">
    <div class="layui-inline">
      <label class="layui-form-label">租用标准（元/时）</label>
      <div class="layui-input-inline">
        <input type="text" name="equprice" lay-verify="required" autocomplete="off" class="layui-input">
      </div>
    </div>
  </div>

  <div class="layui-form-item">
    <button class="layui-btn" lay-submit="" lay-filter="addEqu">录入</button>
  </div>
</form>

<script th:src="@{/layui/layui.js}" charset="utf-8"></script>
<script>
  layui.use(['form', 'layedit', 'laydate'], function(){
    var form = layui.form
            ,layer = layui.layer
            ,layedit = layui.layedit
            ,laydate = layui.laydate;

    //日期
    laydate.render({
      elem: '#date'
    });
    laydate.render({
      elem: '#date1'
    });

    //创建一个编辑器
    var editIndex = layedit.build('LAY_demo_editor');

  });
</script>
</body>
</html>